﻿namespace IDEAMS.model.etalon
{
    public class Compare
    {
        public string name {  get; set; }
        public int channelNo { get; set; }
        public int gratingNo { get; set; }
        public double srcValue { get; set; }
        public double dstValue { get; set; }
        public double diffValue { get; set; }

        public Compare()
        {

        }

        public Compare(Compare compare)
        {
            this.name = compare.name;
            this.channelNo = compare.channelNo;
            this.gratingNo = compare.gratingNo;
            this.srcValue = compare.srcValue;
            this.dstValue = compare.dstValue;
            this.diffValue = compare.diffValue;
        }
        public Compare(CompareViewModel compare)
        {
            this.name = compare.name;
            this.channelNo = compare.channelNo;
            this.gratingNo = compare.gratingNo;
            this.srcValue = compare.srcValue;
            this.dstValue = compare.dstValue;
            this.diffValue = compare.diffValue;
        }

        public void Copy(Compare compare)
        {
            this.name = compare.name;
            this.channelNo = compare.channelNo;
            this.gratingNo = compare.gratingNo;
            this.srcValue = compare.srcValue;
            this.dstValue = compare.dstValue;
            this.diffValue = compare.diffValue;
        }

        public Compare Clone()
        {
            return new Compare(this);
        }
    }
}
